

            function addArduinoCod (Blockly) {
            
                        
                        

                        
        Blockly.Arduino['EXT_GAS_SENSORS_BLOCK_1608033131824'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_GAS_SENSORS_BLOCK_1608033131824'] = ``;
            Blockly.Arduino.definitions_['define_EXT_GAS_SENSORS_BLOCK_1608033131824'] = `#define GasAnalogPin${pin}   ${pin}`;
            Blockly.Arduino.definitions_['setup_EXT_GAS_SENSORS_BLOCK_1608033131824'] = `pinMode(GasAnalogPin${pin}, INPUT);`;
             return  [`analogRead(GasAnalogPin${pin})`];
        }
                    

                        
        Blockly.Arduino['EXT_GAS_SENSORS_BLOCK_1608033131921'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_GAS_SENSORS_BLOCK_1608033131921'] = ``;
            Blockly.Arduino.definitions_['define_EXT_GAS_SENSORS_BLOCK_1608033131921'] = `#define GaslDigitalPin${pin}  ${pin}`;
            Blockly.Arduino.definitions_['setup_EXT_GAS_SENSORS_BLOCK_1608033131921'] = `pinMode(GaslDigitalPin${pin}, INPUT);`;
             return  [`digitalRead(GaslDigitalPin${pin})`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        